package com.easylinkin.linkappapi.machinery.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.machinery.dto.MachineryUserLinkDTO;
import com.easylinkin.linkappapi.machinery.entity.MachineryUserLink;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 人员类别关联人员 Mapper 接口
 * </p>
 *
 * @author kanyuanfeng
 * @since 2022-08-03
 */
public interface MachineryUserLinkMapper extends BaseMapper<MachineryUserLink> {

  IPage<MachineryUserLinkDTO> queryListByPage(Page page, @Param("machineryUserLink") MachineryUserLink machineryUserLink);

  List<MachineryUserLinkDTO> getUser(@Param("code") String code, @Param("tenantId")String tenantId);
}
